<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Vorlagendatei
//-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
	<title>Passwort</title>
	<meta http-equiv="content-type" 
	content="text/html; charset=utf-8" />
	<meta http-equiv="content-language" content="de, at" />	
	<meta http-equiv="content-script-type" content="text/javascript" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta name="design" content="DRAGON-WEB Studio Schweiz Telefon +41 (0)62 849 06 69" />
	<meta name="author" content="Roger Okle" />
	<meta name="date" content="2011-06-27" />
	<meta name="description" content="Beschreibung der Webseite" />
	<meta name="keywords" content="Schlagwoerter" />
	<meta name="robots" content="index" />
	<meta name="robots" content="follow" />
	<meta name="revisit-after" content="30 days" />
	<link rel="stylesheet" type="text/css" href="../css/layout.css" />
	<script type="text/javascript" src="sha1.js"></script>
	<script type="text/javascript" src="md5.js"></script>
	<script type="text/javascript">
	/* <![CDATA[ */
		function chkFormular()
		{
			if (document.auth.benutzer.value == "")
			{
				alert("Bitte Ihren Benutzernamen eingeben!");
				document.auth.benutzer.focus();
				return false;
			}
			if (document.auth.passwort.value == "")
			{
				alert("Bitte Ihr Passwort eingeben!");
				document.auth.passwort.focus();
				return false;
			}
			
			// Abfangen der Variable passwort
			str = document.auth.passwort.value;
			
			// Umwandlung sha1
			document.auth.sha1.value = hex_sha1(str);
			
			// Umwandlung md5
			document.auth.md5.value = MD5(str);
			return false;
		}
	/* ]]> */
	</script>
</head>
<body>
<form id="auth" name="auth" action="08_passwort_01.html" method="post" onsubmit="return chkFormular()">
	<table border="0" cellpadding="5" cellspacing="0">
		<tr>
			<td>Benutzername</td>
			<td><input type="text" name="benutzer" title="benutzer" size="20" maxlength="30" tabindex="1" /></td>
		</tr>
		<tr>
			<td>Passwort</td>
			<td><input type="password" name="passwort" title="passwort" size="20" maxlength="40" tabindex="2" /></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" name="submit" value="Einloggen" tabindex="3" /></td>
		</tr>
		<tr>
			<td>SHA1</td>
			<td><input type="text" name="sha1" title="sha1" size="50" maxlength="40" /></td>
		</tr>
		<tr>
			<td>MD5</td>
			<td><input type="text" name="md5" title="md5" size="50" maxlength="40" /></td>
		</tr>
	</table>
</form>
</body>
</html>






